package xcmg.device.dao.mapper.secondAgent;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import xcmg.device.dao.entity.secondAgent.OemInfoDO;
import xcmg.device.dao.entity.secondAgent.SecondAgentDO;
import xcmg.device.dao.entity.secondAgent.SecondAgentInfoDO;
import xcmg.device.dao.entity.secondAgent.SecondAgentSelectedDO;
import xcmg.device.service.vo.basic.AuthConditionVO;
import xcmg.device.service.vo.secondAgent.SecondAgentConditionVO;

@Mapper
public interface SecondAgentMapper {

	int getCount(SecondAgentDO secondAgentDO);
	
	int insert(SecondAgentDO secondAgentDO);
	
	int delete(SecondAgentDO secondAgentDO);
	
	List<SecondAgentInfoDO> list(SecondAgentConditionVO condition);
	
	List<SecondAgentSelectedDO> getSecondProxyList(AuthConditionVO condition);
	
	List<OemInfoDO> listOemInfos(String orgId);
	
	SecondAgentDO getAgentInfo(@Param("oemOrgId") String oemOrgId, @Param("orgId")String orgId);
}
